package com.weipai.demo.mapper.manager;

import com.weipai.demo.model.ManagerProduct;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;



import java.util.List;
import java.util.Map;

@Service
public interface DManagerProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ManagerProduct record);

    int insertSelective(ManagerProduct record);

    List<Map<String,Object>> getRecommentList(Integer page,Integer size);

    int updateByPrimaryKeySelective(ManagerProduct record);

    int updateByPrimaryKeyWithBLOBs(ManagerProduct record);

    int updateByPrimaryKey(ManagerProduct record);

    List<Map<String, Object>> selectBystatus(String status,String managerPhone);

    List<Map<String, Object>> selectAll(String managerPhone);

    List<ManagerProduct> selectById(Integer id);

    int updateStatus(Integer id, String status);

    int deleteById(Integer id);

    List<Map<String,Object>> selectByAttr(@Param("attrList") List<String> attrList);

    List<Map<String,Object>> selectByAslist(@Param("asList") List<String> asList);

    List<Map<String, Object>> selectByNull(@Param("scopeId")Integer scopeId,
                                           @Param("loanPeriodId")Integer loanPeriodId, @Param("applicantId")String applicantId,
                                           @Param("housePropertyId")Integer housePropertyId, @Param("institutionalTypeId")Integer institutionalTypeId,
                                           @Param("isVehicleId")Integer isVehicleId, @Param("isCreditId")Integer isCreditId,@Param("pledgeMethodId")Integer pledgeMethodId,
                                           @Param("modeOfRepaymentId")Integer modeOfRepaymentId, @Param("status")String status);
    Integer selectByName(String productName);}